package com.maxima.attendance.interceptors;

import com.maxima.attendance.constants.Constants;
import com.opensymphony.xwork2.ActionInvocation;

public class UserSessionValidator extends SessionValidator {
	private static final long serialVersionUID = 1L;

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		if (!validateUserSession()) {
			return Constants.ERROR;
		}
		return invocation.invoke();
	}
}
